﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_GroupNews.ascx.cs" Inherits="Stationery.UC.UC_GroupNews" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<table cellspacing="5" cellpadding="3" width="100%" border="0">
	<tr>
		<td><asp:datalist id="DataListNews" CssClass="DataListNews" CellSpacing="0" 
                CellPadding="0" Width="100%"
				Runat="server" onitemdatabound="DataListNews_ItemDataBound">
				<ItemTemplate>
					<table cellpadding="3" cellspacing="3" width="100%" border="0">
						<tr>
							<td colspan="2">
								<asp:HyperLink ID="HyperLinkTitle1" Runat="server" CssClass="NewsTitle"></asp:HyperLink>
							</td>
						</tr>
						<tr>
						    <td align="left" colspan="2">
                                <asp:Label ID="LabelNewsDate" runat="server" Text="" CssClass="LabelNewsDate"></asp:Label>
						    </td>
						</tr>
						<tr>
						    <td style="width:130px">
						        <a href='<%# GetLinkDetail(Eval("Group_id").ToString(),Eval("News_id").ToString()) %>' >
                                    <dxe:ASPxBinaryImage ID="ASPxBinaryImageData" runat="server" Height="100px" Width="130px">
                                    </dxe:ASPxBinaryImage>
                                </a>
							</td>
							<td valign="top">
								<div id="DivDesc" runat="server" class = "NewsDesc"></div>
							</td>
						</tr>
						<tr height="5">
								<td></td>
						</tr>	
						<tr>
						    <td colspan="2" align="right">
						        <asp:HyperLink ID="HyperLinkView" Runat="server" CssClass="LinkDetail"></asp:HyperLink>
						    </td>
						</tr>						
						<tr>
							<td colspan="2">
								<table width="100%" cellpadding="0" cellspacing="0" class="NewsSaparate">
									<tr>
										<td width="100%"></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</ItemTemplate>
			</asp:datalist></td>
	</tr>
	<tr>
		<td height = 20></td>
	</tr>
	<tr>
		<td><asp:datalist id="DataListTitle" CssClass="DataListNews" CellSpacing="0" 
                CellPadding="0" Width="100%"
				Runat="server" onitemdatabound="DataListTitle_ItemDataBound">
				<ItemTemplate>
					<table cellpadding="2" cellspacing="2" border="0">
						<tr>
							<td><asp:Image ID="ImageOther2" Runat="server" ImageUrl = "~/Image/Icon/triangle.png"></asp:Image></td>
							<td width = 5></td>
							<td>
								<asp:HyperLink ID="HyperlinkTitle2" Runat="server" CssClass="NewsOther"></asp:HyperLink>
							</td>
							<td width = 5></td>
							<td>
								<asp:Label ID="LabelDate" Runat="server" CssClass="LabelNewsDate"></asp:Label>
							</td>
						</tr>
					</table>
				</ItemTemplate>
			</asp:datalist></td>
	</tr>	
</table>
